home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Xm / XmSetColorCalculation.z / XmSetColorCalculation
Text File  |  1998-10-30  |  6KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn - A function to set the procedure used
  10.           for default color calculation
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.           #include <Xm/Xm.h>
  14.           XXXXmmmmCCCCoooolllloooorrrrPPPPrrrroooocccc XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn(
  15.           XXXXmmmmCCCCoooolllloooorrrrPPPPrrrroooocccc ccccoooolllloooorrrr____pppprrrroooocccc);
  16.  
  17.      VVVVEEEERRRRSSSSIIIIOOOONNNN
  18.           This page documents Motif 2.1.
  19.  
  20.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  21.           XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn sets the procedure to calculate
  22.           default colors.  This procedure is used to calculate the
  23.           foreground, top shadow, bottom shadow, and select colors on
  24.           the basis of a given background color.  If called with an
  25.           argument of NULL, it restores the default procedure used to
  26.           calculate colors.
  27.  
  28.           _c_o_l_o_r__p_r_o_c
  29.                     Specifies the procedure to use for color
  30.                     calculation.
  31.  
  32.           Following is a description of the XXXXmmmmCCCCoooolllloooorrrrPPPPrrrroooocccc type used by
  33.           XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn:
  34.  
  35.           void (*_c_o_l_o_r__p_r_o_c) (_b_a_c_k_g_r_o_u_n_d__c_o_l_o_r, _f_o_r_e_g_r_o_u_n_d__c_o_l_o_r, _s_e_l_e_c_t__c_o_l_o_r, _t_o_p__s_h_a_d_o_w__c_o_l_o_r,
  36.           _b_o_t_t_o_m__s_h_a_d_o_w__c_o_l_o_r)
  37.                   XColor  *_b_a_c_k_g_r_o_u_n_d__c_o_l_o_r;
  38.                   XColor  *_f_o_r_e_g_r_o_u_n_d__c_o_l_o_r;
  39.                   XColor  *_s_e_l_e_c_t__c_o_l_o_r;
  40.                   XColor  *_t_o_p__s_h_a_d_o_w__c_o_l_o_r;
  41.                   XColor  *_b_o_t_t_o_m__s_h_a_d_o_w__c_o_l_o_r;
  42.           (vvvvooooiiiidddd)
  43.  
  44.           Specifies the procedure used to calculate default colors.
  45.           The procedure is passed a pointer to an _X_C_o_l_o_r structure
  46.           representing the background color.  The _p_i_x_e_l, _r_e_d, _g_r_e_e_n,
  47.           and _b_l_u_e members of this structure are filled in with values
  48.           that are valid for the current colormap.
  49.  
  50.           The procedure is passed pointers to _X_C_o_l_o_r structures
  51.           representing the foreground, select, top shadow, and bottom
  52.           shadow colors to be calculated.  The procedure calculates
  53.           and fills in the _r_e_d, _g_r_e_e_n, and _b_l_u_e members of these
  54.           structures.  The procedure should not allocate color cells
  55.           for any of these colors.
  56.  
  57.           _b_a_c_k_g_r_o_u_n_d__c_o_l_o_r
  58.                     Specifies the background color.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                         (printed 10/24/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn((((3333XXXX))))
  71.  
  72.  
  73.  
  74.           _f_o_r_e_g_r_o_u_n_d__c_o_l_o_r
  75.                     Specifies the foreground color to be calculated.
  76.  
  77.           _s_e_l_e_c_t__c_o_l_o_r
  78.                     Specifies the select color to be calculated.
  79.  
  80.           _t_o_p__s_h_a_d_o_w__c_o_l_o_r
  81.                     Specifies the top shadow color to be calculated.
  82.  
  83.           _b_o_t_t_o_m__s_h_a_d_o_w__c_o_l_o_r
  84.                     Specifies the bottom shadow color to be
  85.                     calculated.
  86.  
  87.      RRRREEEETTTTUUUURRRRNNNN
  88.           Returns the color calculation procedure that was used at the
  89.           time this routine was called.
  90.  
  91.      RRRREEEELLLLAAAATTTTEEEEDDDD
  92.           XXXXmmmmCCCChhhhaaaannnnggggeeeeCCCCoooolllloooorrrr(3), XXXXmmmmGGGGeeeettttCCCCoooolllloooorrrrssss(3), and
  93.           XXXXmmmmGGGGeeeettttCCCCoooolllloooorrrrCCCCaaaallllccccuuuullllaaaattttiiiioooonnnn(3).
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                         (printed 10/24/98)
  130.  
  131.  
  132.  
  133.